﻿using System;
using System.Collections.Generic;
using System.Reflection;

namespace CoreEx.Common.Proxy
{
    /// <summary>
    /// Represents a class that is capable of determining the properties that 
    /// should be implemented by a proxy type. 
    /// </summary>
    public interface IPropertyPicker
    {
        /// <summary>
        /// Determines the the properties that should be implemented by a proxy type.         
        /// </summary>
        /// <param name="baseType"></param>
        /// <param name="baseInterfaces"></param>
        /// <returns>A list of <see cref="PropertyInfo"/> instances that represent the properties that should be implemented by the proxy type.</returns>
        IEnumerable<PropertyInfo> ChooseProxyPropertiesFrom(IEnumerable<Type> types);
    }
}
